//
//  LiTableView.h
//  
//
//  Created by 李晓东 on 17/11/23.
//
//

#import <UIKit/UIKit.h>
#import "ThroadToServer.h"

typedef NS_ENUM(NSInteger, RefreshingState) {
    idle,
    pulling,
    refreshing,
    loading,
    loaded
};

typedef void (^ TableContentOffsetBlock)(void);

typedef void (^PullUpDoubleChromsphereBlock)(NSArray *);

@interface LiTableView : UITableView
@property (nonatomic, assign) RefreshingState state;
- (instancetype)initWithBlock:(ResultOfDoubleChromosphere)block andPullUpBlock:(PullUpDoubleChromsphereBlock)pullUpBlock;
- (void)addObserverForContentOffset:(TableContentOffsetBlock)block;
- (void)finishLoading;
@end
